package ebuy.com.cotroller;

import ebuy.com.pojo.Homepagedirectory;
import ebuy.com.server.Homepagedirectoryserver;
import ebuy.com.util.RespBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class HomepagedirectoryCotroller {
    @Autowired
    private Homepagedirectoryserver homepagedirectoryserver;
    @GetMapping("/homme")
    public RespBean GetHommer(){
        List<Homepagedirectory> queryalldirectories =homepagedirectoryserver.Queryalldirectories();
        return RespBean.success("查询成功",queryalldirectories);

    }
}
